package com.example.springboot_demo.web.controller;

import com.example.springboot_demo.web.domain.Stu;
import com.example.springboot_demo.web.service.IStuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/stu")
public class StuController {
    @Autowired
    private IStuService stuService;

    @GetMapping("/list")
    public Object list(Stu stu) {
        return stuService.list();
    }
}
